<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Merchant Detail</title>
<%@include file="/common.jsp"%>
</head>
<style>
	.btn {margin:2px; width:90px; height:40px; border:#F00 1px; 
		background:#003366; color:#FFF; border-radius:3px; font-size:18px;}
</style>
<body text-align="center">
	<div style="margin:0px auto;">
		<div style="margin-top: 50px; width: 100%">
		<div style="text-align: center"><font style="font-size: 28px">Merchant Detail</font></div>
		<hr>
		<div style="margin:0px auto;text-align: center; border: 1px solid gray; width: 500px;height: 600px">
				<table style="margin-left: 40px" >
					<tr>
						<td class="td_right">Name:</td>
						<td class="td_left">${mer.name }</td>
					</tr>
					<tr>
						<td class="td_right">ID Card:</td>
						<td class="td_left">
							<img src="${ctx }/sec/image${mer.idcard }" width="200px" height="150px">
						</td>
					</tr>
					<tr>
						<td class="td_right">Head:</td>
						<td class="td_left">
							<img src="${ctx }/sec/image/${mer.heading }" width="140px" height="120px">
						</td>
					</tr>
					<tr>
						<td class="td_right">Address:</td>
						<td class="td_left">${mer.address }</td>
					</tr>
					<c:if test="${mer.status==0 }">
						<tr>
							<td class="td_right">Status:</td>
							<td class="td_left">In Process</td>
						</tr>
					</c:if>
					<c:if test="${mer.status==1 }">
						<tr>
							<td class="td_right">Status:</td>
							<td class="td_left">Pass</td>
						</tr>
						<tr>
							<td class="td_right">Is Ban?</td>
							<c:if test="${mer.ban==true }"><td class="td_left">Yes</td></c:if>
							<c:if test="${mer.ban==false }"><td class="td_left">No</td></c:if>
						</tr>
						</c:if>
						<c:if test="${mer.status==2 }">
							<tr>
								<td class="td_right">Status:</td>
								<td class="td_left">Reject</td>
							</tr>
							<tr>
								<td class="td_right">Reason:</td>
								<td class="td_left">${m.bContent }</td>
							</tr>
						</c:if>
						<tr>
							<td>Verify Record:</td>
							<td><a href="history?mid=${mer.id }">Check</a></td>
						</tr>
				</table>
				<br/><br/>
				<button onclick="{location.href='back?s=${mer.status}'}" class="detail">Return</button>
			</div>
		</div>
	</div>
</body>
</html>